<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://goals.paulzerr.de/" />
<title>Validate_DateGoalsName</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Validate_DateGoalsName</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/index.php?logout=true</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=email</td>
	<td>yuvie@gmx.de</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=loginButton</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>xpath=(//a[contains(text(),'new goal')])[2]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td>testgoal</td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>note</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>5</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>10</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Goalname 'testgoal' already exists.</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;button&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=subgoalname_0</td>
	<td>testsub</td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoalmeasurename_0</td>
	<td>note</td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoalstart_0</td>
	<td>2</td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoalcurrent_0</td>
	<td>5</td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoaltarget_0</td>
	<td>30</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Please fill out required goal field 'goal'.<br />Please fill out required goal field 'measurename'.<br />Please fill out required goal field 'startvalue'.<br />Please fill out required goal field 'currentvalue'.<br />Please fill out required goal field 'targetvalue'.<br />Start value of goal is invalid.<br />Current value of goal is invalid.<br />Target value of goal is invalid.</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;button&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoalstart_0</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=subgoaltarget_0</td>
	<td>4</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td>OR</td>
</tr>
<tr>
	<td>type</td>
	<td>name=deadline</td>
	<td>2012-03-01</td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Note</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>200</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>300</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>The date 2012-03-01 is in the past.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=goals overview</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>xpath=(//a[contains(text(),'new goal')])[2]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td>ValidateDeadline</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=deadline</td>
	<td>2012-07-07</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>note</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>3</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>45</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>200</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Please fill out required goal field 'measurename'.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Note</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td>ValidateFloatTyp</td>
</tr>
<tr>
	<td>type</td>
	<td>name=deadline</td>
	<td>2012-07-019</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Cash</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>301,4</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>334.50</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>400.00</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Date format of deadline '2012-07-019' is wrong.<br />Start value of goal is invalid.<br />Current value of goal is invalid.</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=deadline</td>
	<td>2012-07-19</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>301,00</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>334,00</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>400,00</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>301,0</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>334,0</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>400,5</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=measuretype</td>
	<td>label=float</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>300,23</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>300,55</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>300,70</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Values</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Please fill out required goal field 'measurename'.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=goal</td>
	<td>ValidateMoneyTyp</td>
</tr>
<tr>
	<td>select</td>
	<td>id=measuretype</td>
	<td>label=money</td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Cash</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>1000,345</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>1000,36</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>2000,8</td>
</tr>
<tr>
	<td>click</td>
	<td>//input[@value='Delete last subgoal']</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=measuretype</td>
	<td>label=money</td>
</tr>
<tr>
	<td>type</td>
	<td>id=startvalue</td>
	<td>1000,34</td>
</tr>
<tr>
	<td>type</td>
	<td>id=currentvalue</td>
	<td>1000,54</td>
</tr>
<tr>
	<td>type</td>
	<td>id=targetvalue</td>
	<td>1000,99</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=measurename</td>
	<td>Cash</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=goals overview</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='content']/table/tbody/tr[3]/td[12]/a/img</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//input[@value='add new subgoal'])[2]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Log out</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Good bye!</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
